package com.xz.coursearrange.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xz.coursearrange.common.ServerResponse;
import com.xz.coursearrange.entity.CoursePlan;
import com.xz.coursearrange.entity.request.UpdateCourseRequest;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.HashSet;
import java.util.List;

/**
 */
public interface CoursePlanService extends IService<CoursePlan> {

    /**
     * 根据班级编号查询课程安排
     */
    ServerResponse queryCoursePlanByClassNo(@PathVariable("classno") String classNo);

    ServerResponse queryCoursePlanByClassroomNo(@PathVariable("classroomNo") String classroomNo);

    ServerResponse queryCoursePlanByTeacherNo(@PathVariable("teacherNo") String teacherNo);
    ServerResponse queryAllSemester();

    // 弃用---------------------------------------------
//    List<CoursePlan> redlist();

    ServerResponse unUseClassTime(Integer id);

    ServerResponse unUseClassroom(Integer id, String classTime);

    ServerResponse unUseClassTimeByClassNo(String classNo);

    ServerResponse unUseTeacherByClassTime(String classTime);

    ServerResponse unUseClassroomByClassTimeAndCourseAttr(String courseNo, String classTime);
    ServerResponse selectionOptionalLessonByClassId(Integer classId,Integer teacherId);
    HashSet<Integer> selectionOptionalLessonByTeacherId(Integer id);
    ServerResponse selectionClassRoomByGrade(String grade,String lessonPlan);
    ServerResponse updateCourse(UpdateCourseRequest request);
}
